package com.losdun.aftersales.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description
 * @Author Sword.Ye
 * @Date 2025/9/23
 **/
@Getter
@AllArgsConstructor
public enum WorkStatusEnum {

    WAIT_WORKER(0, "已记录"),
    WORKER(1, "已安排师傅"),
    COMPLETED(2, "处理完成"),
    COMMENT(3, "已评价")
    ;
    private final Integer value;
    private final String label;

    public static String getLabel(Integer value) {
        for (WorkStatusEnum item : WorkStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item.label;
            }
        }
        return null;
    }
}
